<extend name="layout/edit" />

<block name="HEADER">
    <style type="text/css">
        body {
            background: #EBEBEB url(/admins/images/back_pic.jpg) no-repeat;
            background-size: 100% 100%;
        }
        .form-body{
            width: 500px;margin:0 auto;border: 1px solid #ccc;
            margin-top: 30px;
        }
    	.form-hade{
    	    height: 50px;
    	    line-height: 50px;
    	    background: #353434;
    	    color: #FFFFFF;
    	    padding: 0 10px;
    	}
    </style>
</block>

<block name="CONTENT">
    <div class="form-body">
        <div class="form-hade">系统初始化安装</div>
        <control:form id="form" xml="views/system/baseInstall/config.xml"/>
    </div>
</block>

<block name="FOOTER">
    <script type="text/javascript">
    	var page=(function(ns){
    
            //页面初始化
            ns.init=function(){
                
            }
            
            //保存
            ns.save=function(){
                var data =  form.getData();
                if(!data) return false;
                $.ajaxs("/admin/soft/Install/create",data).then(function(res){
                    $.toast(1,"链接成功！");
                    window.location.href = window.location.href;
                });
            }
            
            return ns;
        }({}));
        
        $(function(){ page.init(); });
    </script>
</block>



